replaced sha256 with sha1, performance increased 10 times