Optimize MatchedFilter, ~2x better performance.