Context-aware local storage based on CLS