Performance improvement on words_used_excluding_common method