lib: internal: cacheimpl: processIndexEntries: refactoring: avoided using 'FORIT'