After using my L10 nichia for a couple of months, it developed intermittent flickering and mode changes. I thought for a while that it was just a result of the twisty action causing the foamy squishy bit to wear out…………But……It wasn’t, it was caused by Alu oxide forming on the negative ‘peg’. After cleaning this up, just a little dab of Vaseline has kept it working without fault ever since.
There is a no-ox compound that might be a little better than Vaseline. Works nice on anything that exposed to the elements, or is subjected to unacceptable galvanic breakdown levels.
Good find on keeping those contacts clean. You'll want to do that with your high current lights too as it can make a big difference in battery performance.