add precomputed hashes option to java version