Context-aware local storage