Optimize Hfilter