A few more thoughts, some repeated from above.
1. 8 GB of total ram needs to be much more like 16 even better 32. LR takes advantage of some system ram, but IMO is much more processor dependent however adding more ram will all the OS to handle other background requests better and thus free up system resources.
2. You mention scratch disc for LR, are you referring to the location of the cache? I have in the past moved the location of the cache away from the same drive as the catalog, but recently move the cache location back to the same as the catalog, seemed to give a bit of improvement.
3. What is your processor, i5, i7, etc. LR is very processor dependent, just look at at task manager while it's running any job and or download any of the tools that will monitor your processors during the time LR is running. LR more than likely will have all your processor threads. So a i7 four core with 8 threads is the best I believe.
4. GPU, anyone's guess. It's my opinion that LR on the windows side can't begin to work with the 4 GB of ram on my GTX970 (I realize per new class action lawsuit nvidia cut some corners on total ram on these card), and the processor is barely touched. So having a large nvidia card, may or may not help, other cards may be better, so far I have tried, 960 and 870 and 970 all with 4GB of ram, and none of them really added a bit to the speeds for LR. It's my understanding that only the develop module is able to work with open CL, but that is the most important module. It's easy enough to benchmark the GTX970 while LR is running and the card is barely touched.
Trying to merge 5 HDR's into a pano, will be tasking mainly the system processing in LR, so I would start there, but still increase system ram to 16GB min.
Paul C