Fixed over-allocation and removed redundant zeroing in ByteBuffer