Reuse directive_hash and don't hash the same directive twice.