Cache the DOMXPath