Working version of build_cache.worker