use a cache for CorpusConfig