Use SHA1 digest as task identifier, a lot slower but the chance of collisions is very low.