You still might want to look into curve optimizer, which is just a marketing term for an automatic undervolt. Since these AM5 CPUs are power limited, you can get (potentially) much higher clocks while still staying within the same energy budget. It's perfectly safe (AFAIK) since it doesn't involve pushing more energy into your chips (neither voltage nor TDP), and won't take very long.