reduce md5 calls