Move validation process to DigestInputStream for SimpleDigest
Remove thread local digest cache.