cache index files on demand