Caching settings adjustments

Remove DB caching in favor of local-memory caching. And other adjustments.