optimize the digest_worker.