adjust the number of concurrent threads to the amount of CPU cores
don't be so dramatic about memory issues