speed up: store hash in a binary