performance improvements with md5 (1st loop)