Support of Sticky ECMP

Hi, I would need to support “Sticky ECMP” on routes learned or configured with same metrics / distance.
I tested ECMP and works perfectly, just need to improve it with stickiness to avoid re-hashing in case of loss of a contributing member.
Any information on how to configure it is highly appreciated.

Thank you.