Improved protocol validation scheme to coop with protocol buffer overflow.