precompute hashes by default in Java as well