=rem #16428 optimize protobuf serializer for master

#16428 for master
yeah, I see now, I mixed it up with the get from the Map