Avoiding searching for the same word twice..