Caching ontology-expanded terms.