Optimize packet decoder to work directly with ByteBuf and remove decoding of unused fields