casexml has been updated to memoize.