Implement read/write of compressed storage.