Optimize deserialization