using hashed intermediate state for new pool state so that a compromised pool state does not leak the most recent output