Speeding up mistral export with caching all terms