MD5 has been optimized with parallel/direct computation selection based on input stream length. Port the same optimizations to SHA-1 library.