Have you ever received a mid-year bonus at your job?
Yup.
It's mandatory for some governments and applies it to the corporations that are into their jurisdiction. But I think that most companies, this is a voluntary action and just having it, makes you feel home.
Should you want to work just for the mid and end year bonus, I don't think it's worth it if you have a better job that you're working on flexibly.