Split the stopWords method in two part's to correct the mistake of reading from disk for every call to the method.Now the stop words are loaded in the class constructor and the isInStopList method reads from memory and avoids the latency deu to disk seek operations.