Allow to read from localStorage only if it is enabled