Removed unnecessary allocation of heap ByteBuf for the encoded messages