Update to use config library, make cacheSize a config option, and switch to using the health status