background tasks for index management when caching on lucene inverted index