I would be hesitant to spray contact cleaner inside the tachometer, as it has been known to melt, and cause plastics to crumble.
I ruined a Ryobi cordless drill, by trying to clean out the motor area with contact cleaner, shot it at the end of my shift at work, and the next day when I brought it out, the plastic body just crumbled !!
I would try placing a light-bulb next to the tachometer area, and let a bit of heat dry it out.