Rewrite md5 to be *much* faster.