Added cache table support. Updated setting storage to always force objects when encoding json.