Improve filtering performance.