Gradients are defined once in kshf root

Not repeated per each