Small serialization optimizations