Coupled setting of autoconnect pref with cached var