prepared for local caching
remove the tmpfile option, instead read the query from memory
remove pugixml and all other XML parsing too!; add local cache option