Optimized number of filter operations