Efficient binary packing using msgpack