compute FFT meshgrid only once