md5: avoid unnecessary copying.