Improve addPhrases performance