If the schema of the message is fixed, more efficient compression is possible. Keep the msgpack and build a treemap for shorter key names. It will need the same schema to restore original message.