Preserve capture size in sampler