A faster way of handling buffers.