This version is old school.
Please find jQuery plugins on npm.
jQuery DOM Cache
by Joe Johnson
Using $.cache (or $.domCache) may dramatically increase the performance of your web application by eliminating unnecessary DOM traversal. Manipulate the DOM (with event handling) more efficiently by referencing cached DOM elements.