Good idea because I see all retirement funds as an easy attack vector. I expect compulsory allocations to government bonds to come so your solution would work in that case.
I think its also a good idea to have an allocation outside retirement funds to manage this risk.