Query from data

Hi , we do a REST call to a server and get data which we can display data  in a datagrid (with JASON / IMPORT MAPPING). We get temp humidity and location. To show some specific data (like highest temp) we call this REST microflow again and aggregate max data and get the result. But every time we have to call the REST microflow to get the data from the server. How can we achieve minipulate the data (fi when was highest temp reached) with just calling the REST microflow one time (time consuming to get the data from the server).
1 answers

Would it not be possible after the retrieve to create your own local shadow database? Because then you can search your local database and only if a location for instance is not found do the REST call to retrieve the missing data and add that to the local database.