If you're doing it for detecting dupes then md5 is overkill, a decent hash from FastHash will do with a sizeable output. Work out the birthday problem probability of collision you are willing to ...