Last time I checked buying 32 GB of ram for the imac was about $175, apple took $850 to upgrade from the base 8 GB to 32 GB...
Replacing them wouldn't take many minutes.
(Or - you could buy 64 GB for $350 (something apple didn't even offer, I guess the uint32 would overflow)).