added cache to activerecord setting objects, in order to minimize database queries