I hit the 20 maximum about twice a week. And I'm never concerned about the pokemon I leave in a gym being there for a while. I only put pokemon in gyms that I'm going to transfer. When they are defeated I just transfer them. Don't have to worry about reviving and healing them.