Improve config with local storage