Drastically reduced RAM use while generating file

Reduced RAM usage by roughly 50% while generating the list of possible values and the CSV file containing the hashes and values.