Setup buffer lazily on-demand