modify the SHA1 function, reduce the page replacement