MDL-64049 core: Cache prefs for current user