Preprocess words to ints to try and speed up app