Cache images hash
In the deep duplicate phase, the computation of images hash is quite CPU demanding and we are repeatingly computing the hashes.
We should put the hashes in the cache as well to compute the hashes only once per image. It should drastically reduce the length of the third step, which is by far the longer.