The old implementation was using ByteBuffer.allocateDirect(), hence the memory was not allocated on the heap. Since we now use MemorySegments which allocate their byteArrays on the heap, we have increased memory demands.

I had failing test cases without this change!