Use `for` instead of `forEach` in `DefaultDiffCacheInvalidator` to improve performance.