Fixed multi-threaded issues (ThreadLocal ByteBuffers)