Compact binary serialization