No miracle is needed:
https://en.wikipedia.org/wiki/Sodium-ion_battery
The sodium-ion battery (NIB or SIB) is a type of rechargeable battery that uses sodium ions (Na+) as its charge carriers. Its working principle and cell construction are almost identical with those of lithium-ion battery (LIB) types, but replace lithium with sodium.
You can buy a car with this battery type already:
https://www.caixinglobal.com/2023-02-27/volkswagen-jac-ventu...