Temporary buffers for unfolding (for CUDA version)