And it has other unintended consequences. People go out for drinks. People talk. If your potential future employer is a friend of your boss he'll find out pretty quickly you are "a nice guy but an under-performer". Do you really want to be that guy?
This is so unlikely that it's not worth changing so much of your behaviour for it.
Don't forget the decrease in your sense of self-worth and increase in being cynical and toxic to deal with.
People intentionally doing the bare minimum are unhappy unpleasant people. People no one wants to associate with.