Processing of data before it is stored in the data storage and when the data is retrieved from the storage