Scanning for index files multiple times is not only slow, but would also trigger warnings multiple times.