Improvements on cached results for pmi calculation