Being good is profitable in the longer run