Try using md5sum instead of sha1. Much faster but what is the collison risk?