NXP-15783: make sure the cache is up to date before indexing