Only works when the circuit is closed, ie. when disimilar metals are immersed in a conducting solution. A dry boat will never corrode galvanically.

A good fresh water wash then left to dry is all that is required to reduce corrosion considerably.