As I see it, companies try to get the most from you with the least from them, and your job is to try to get the most from them for the least from you. If you go beyond the minimum that you have to do, then you're setting yourself up to be taken advantage of.
If you think working harder's going to get your more money, then you should totally do it if you want more money, same for job security, same for you just find it an interesting problem, but morally you don't seem to owe them your best - they set out to screw you in the first place. That's their job, that's how people who own companies get rich: By not sharing the wealth equitably.