You need a solvent, not a lubricant for this application. Use neat isopropyl alcohol.

In my experience, WD40 is terrible stuff in any application. It is a temporary fix for moving parts as it...