=rem #16428 optimize protobuf serializer for master

#16428 for master
I haven't but I think the AtomicReference one will be faster.I will try later.