Minizie the localstorage updates

Check the timemodify field where possible.
Update records in the localstorage only when necessary.
Download files only if no cached version available