bool shouldOptimize(String path, int size, DateTime modified) { final entry = _cache[path]; if (entry == null) return true; return entry.size != size || entry.modified != modified; }