Compress serialized metadata.