Add hash_value for generated records