Cache implementation on ValuesFromQuery