feat(settings): implement a basic internal cache api