Being thoughtful toward others is never wasted effort.
Even if our thoughtfulness is not reciprocated and our feelings get hurt, it is still good practice.
It is our expectations, not our thoughtfulness, that lets us down.
We are made better by being thoughtful toward others regardless of the outcome of that thoughtfulness.