I'm thinking that the SSD portion of the fusion drive (which is a 24gb or 32gb SSD) is becoming "saturated", perhaps causing the slowdowns.
Some would pry open the iMac and start fooling with the drives inside, but I won't recommend that.
Rather, I'd suggest you get a USB3.1 gen2 SSD (or put one together yourself), plug it into one of the USBc ports on the back, and set it up to be the "new EXTERNAL boot drive".
You DO NOT WANT a USB3 SSD for a 2017 iMac.
You DO WANT a USB3.1 gen2 SSD, which is almost twice as fast. The 2017 was the first iMac to have USBc ports that can support USB3.1 gen2.
An example of a "put together" drive would be a Samsung t7.
Or, you could buy the "nvme blade" SSD of your choice, and put it into a USB3.1 gen2 enclosure. There are many available and many just snap together.
You didn't tell us which version of the OS you're using.
If it's Mojave or later, erase the drive to APFS, GUID partition format.
Then use either CarbonCopyCloner or SuperDuper to "clone over" the contents of the fusion drive to the SSD. SD is a little easier for a first-time user. BOTH are free to download and use for 30 days, so doing this will cost you nothing.
Set up this way, a USB3.1 gen2 external boot drive should give you read speeds of about 800MBps or even better.
Adding RAM will help, too, but speed-wise, the biggest change you can make is to go to a "Full SSD" boot drive...