def __new__(cls, *args, **kwargs):
    """Threadsafe singleton loading of settings"""
    if not cls._instance:
        with cls._singleton_lock:
            if not cls._instance:
                cls._instance = cls.load_settings()
    return cls._instance
