Hooks for local and cloud storage