Performance patch by Lance Alt (laalt@nps.edu)

Optimize the insertion of the packet payload