I’ve found the best way to get around the whole “illegal to feed the homeless” thing is to just know their name. I’ve been harassed by cops over it, but I always just argue I’m having lunch with a friend. Knowing a couple details sells it to get them off your back, should that ever be an issue.