On my avatar I bought about 9 years ago I did the opposite - replaced Nice Looking stainless hex bolts with non stainless bolts, because the former dissolved aluminium from the bikes stand and frame holes, causing it to keep coming loose and need for retension, more frequent with time passing, until I decided to dismount (it also had a kinda mechanical in-between / adapter piece to make it fit on the frame tube) to find out, to then see a whole bunch of white powder falling out on the floor, most aluminium from the adapter piece, but also the thread in the frame had lost material.
I reported the bad choice to the company, that answered that they would look into it and considered zinc plated bolts.
I replaced the original A2-70 marked M5 bolts with longer non stainless M6 bolts (since alot of the alu thread was gone and the holes in the adapter block bigger) with nuts on the other side, some silicone washed over them to block water from reaching the steel, and problem Gone for Good.
And when I built the bicycle back up with the replacement frame, I had to tap out the back to original M5 to M6, to allow using my steel bolts again.
When I told this to the head mechanic of the dealer (that wasn't yet there at bike purchase time) I bought the bike from, he said he had already done that on other customers bikes suffering same problem as me, and also, that M5 was abit too small to cope with the force.
While his then-boss earlier acted to me like We Don't Know Nothing.
Then-boss, because the dealer ceased the shop, took another job, and the mechanic took the business over on another location.
Similar situation, BUT (just luck, didn't realize back then) prevented before disaster struck were the 6 bolts of the rear cog. Original stainless steel, with externally low rounded heads with torx tool inserts, in alu thread of the IS disc mount of the Surly Ultra hub. For reasons I mentioned earlier here
https://www.cyclechat.net/threads/ditch-your-torx-bolts.310467/post-7608607
Both stories just to illustrate: sometimes one has to Think Twice when considering Nice Looking stainless in aluminium situations, that have quite a presence in bicycles.
Rust removes material from non stainless steel bolts but stainless steel bolts can (water suffices) remove material of what they mount, it comes loose by itself, no stainless steel monkey with his expensive bolts and dedicated tool needed.