Speed up staking by caching transaction ID hashes.