Fix some performance regressions in Cython implementation of FAST