Bug 904263 - check pref settings more efficiently. r=dbaron