Excluding cache from source control.
Stemming the words to minimize the memory size and also to get more hits for a particilar word that a user might type.
Calculating occurance of words using a sparse matrix which is way more efficient.