Review: Enhance the scalability of ngram plugin.