Adds back hasOverride caches in AbstractFilter for performance.