You currently have the middle level machine, the RAM is maxed out ar 16GB
'''Apple iMac "Core i3" 3.2 21.5-Inch (Mid-2010) Specs'''
Identifiers: Mid-2010 - MC509LL/A - ''++iMac11,2++'' - ''++A1311++'' - ''++2389++''
Maximum MacOS:X 10.13.x*
https://everymac.com/systems/apple/imac/specs/imac-core-i3-3.2-21-inch-aluminum-mid-2010-specs.html
Taking it to the '''"Core i5" 3.6''' will only give you a 15% increase in benchmark.
Your best best will be going to an SSD drive. You have a [br]
Serial ATA (3 Gb/s) bus so you will need a drive that is backward compatible.