For last two years I filed taxes as married filing jointly. 1040.
I am on H1 and My wife was on F1 and had no income.

This year she is on OPT and has income. I read stuff about non resident 1040NR, so that she doesn't have to pay social security and Medicare.
Since I already filed jointly. Does that mean i already filed her taxes as resident?
Do I have to stick to filing her as resident? if yes, does she have to pay those taxes?
what are the best options for me this year.
Thanks for the help