CC-5555 : Implement simple caching for preferences

forgot to get rid of user id here.