cache the Gaussian kernel dft and misc optimizations