I don't understand why you need to this or what you are try to achieve here. Please explain.
PS: the rest of the patch was obsoleted by this commit: e637ff188c83732459