HM: Cache collected keys with a cache in Lucene