Reduce reallocation in packetBuffer