Improve cache expiry: don't check tons of prefs on every check, but set
a timestamp whenever one of those prefs is changes. Use the timestamp in
the cache key instead. Let cache expire on every restart.