Don't access to the preferences database too frequently