sampler-nearest: cache the buffer bpp