support String query caching, graphs need to be in options