Use stack, not unique_ptr for buffers.