Cache signature hashes during evaluation
Merge PR 4562