minor refactor of base cache path cycling in prime task