_use_gtk() created a fresh Database instance on every file dialog open just to read one setting. Now caches the result at module level after first check. reset_gtk_cache() clears it when the setting changes.