The epoxy barrier might work, but in general encapsulated metals are risky because they are impossible to inspect for corrosion and cracking so fail without warning, and the encapsulation can block surface oxide formation which causes crevice corrosion- especially if small amounts of salt and water get in there, which they will over time, even in epoxy.
I’m sure what you are saying could be done- especially to basically add stiffness to key regions of a carbon racing bicycle, but it would be experimental and I would not trust it to last a long time