We already pre-fetched db file paths for the cleanup-case (since cdb619e4f), now let's generalize this to all indexing. For now this is mostly performance-neutral (lazy-rescan is slightly faster); however, this simplifies the code.
cdb619e4f