The key to the answer , for me, is in the question itself. A sarcastic joke occasionally is not bad, in and of itself. Of course, it depends on the individuals involved, their way of realting, and what is acceptable to the target of the sarcasm.
However, when it becomes a "habit" it is hardly ever acceptable since it will eventually grate on a person. When it's a habit it will inevitably leak into areas where it is totally inappropriate. The joker may be so in the habit, so to speak , that he or she is unaware when they have stepped out of bounds.
So if you honor your spouse you never develope the habit of sarcastic jokes!