When `-enable-cas` option is used, mirror the output into CAS so it can be fetched from CAS with the cache key in the future.