Removed code duplication in crypt_all_benchmark