minor optimizations to sha1 class