There is a new branding SDK that you should use with 22405 metadata that should contain the fix for this issuehttps://me.sap.com/softwarecenter/template/products/%20_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGA...
You can certainly save them using state variables and later retrieve them and set them again.I am not sure what do you mean by saving them in preferences vs user defaults?