Implementing the new storage encoder/decoder