Memoize xpath selectors converted from CSS
Free the document