Wrapped FFTW kinds and moved planning outside transpose loop.