Reduce branching in single-pass filters.