packet cache performance improvements

based on the work of @mzealey in #1139, with a little @mind04 sauce...

closes  #1139