reduced duplicated md5 call