Implement settings caching, improving performance