Added buffering and sharing to hasher.