Major performance tweaks for tooltip (thanks Jim & Gareth!)