Added option for dumping into text file all iterated keys
Switched pickle protocol to binary to reduce size of temp files and reduce processing time