Automated RGB Channel Swapping

A little off topic, would it be possible combine normal map (2 channels) + ao (1 channel) in a single texture? Probably wouldn’t play nice with the standard compression…