=rem #16428 optimize protobuf serializer for master

#16428 for master
thanks guys :-)
yeah, we indeed care about code quality - and we are geeks