Better utilise java buffers