The dictionary format requires parsing the whole file. We should support dedicated dictionary formats which can do a faster binary search through the file and are much faster which means we can support much larger dictionary files. Or at minimum just sort the file so can jump around and exit as soon as we know a string is not present
https://github.com/catalyst/moodle-tool_password/blob/master/dictionary/google-10000-english.txt