option for decreased memory usage vs. execution time