Avoid use of MD5 when computing refids