Here is an idea based on the concept of a sacrificial anode. Per Wikipedia, to quote:
A galvanic anode, or sacrificial anode, is the main component of a galvanic cathodic protection (CP) system used to protect buried or submerged metal structures from corrosion.They are made from a metal alloy with a more "active" voltage (more negative reduction ...
Though a bit different from what is asked, few things are worth noting:
Electrons barely move in metal wires carrying electricity.
Electrons do not carry energy, the electric and magnetic fields
around it (outside the wire) carry and transfers energy.
A great video to explain it: