Please add a compression option to serialize, so that deserialize seamlessly decompresses (presumably identified by the 8-byte header). I would suggest something simple, like lz4. In some experiments with mixed data, it reduces serialized data storage requirements by a factor of 3, and speeds up deserialization.