Make sure preferences cache is never undefined