Make sha256_sum generation memory efficient.