Improve ByteBuffer invocations