Cache the data query