Revert "Improve LongHash performance."

This reverts commit 1705259934d5f77023262faea844c3847d3a1f2f.