First version of local data persintence