Serialization optimizations