Simplify local storage detection