use pstore to create a local cache of data