Made Hash.getSHA256 use singleton.

Using a lazily evaluated singleton message digest object greatly
increases performance when doing many small hashes.