How would you recommend investing that bonus? If you put it in a high yield savings account you will be lucky to get 1% interest, and you will owe tax on that. If you invest in the stock market, you may find the market is down just when you need to repay it. Meanwhile you lose 7.98% to Social Security and Medicare, and 22% to Federal taxes that may take you a year to get back.
Depends on your risk tolerance. Just wondering whether those golden handcuffs are worth it.