refactor $cacheFactory with global iwccache