Commonalize the cache config and change default to disable cache