Move hash calculation to workers