Efficient serialization for datacenter applications