Even though AI is IMO not anywhere near human-level intelligence yet, I've tried to already get into the habit of thinking to myself "am I being cruel to this AI?" When I set up scripts or tasks or whatnot. So far the answer has always been a resounding "no" but it's a good habit to get into because someday the answer might be "well, maybe."
Considering I take the effort to make sure I'm not being excessively cruel when it comes to killing insects it seems like the least I should be doing.
And self-interested benefits aside, it's just the right thing to do. If a thing is capable of suffering then I want to minimize that.