Add a periodic cleanup thread for IndexFieldCache caches

Fixes #7010