=rem #16428 optimize protobuf serializer for master

#16428 for master
the cacheMethod here will make sure the method has been add to cache or have been cached by others