optimization - skip old folders without scanning every file