avoid copying entire payload just to calc md5