Keep override even after unlinking?

I have an object from another blender file linked into my scene
and I’ve overridden the default material Green Material to Blue Material

enter image description here

but when I unlink the object and relink it again the material gets set back to the default Green Material

So is there any method/feature which will allow me to keep the override material change even after unlinking and relinking again?

Change the material in the original file?

Nah I want the original file to stay as it is, only when it is linked into the other file should the material change be reflected

like for bones, I added an animation at 0 frame for their rotation within the linked file, so whenever they’re imported from the original file they have the override rotation

is there any equivalent for material?

I found the solution

store the values within blender itself and then upon linking set those values