cache ngram context in objects