Feeding medicated food in many cases is the only way to treat an internal infection -- if you just treat the water, only a very very little medication gets delivered to where it would do some good.
That said, I would urge you to stop using medicated food as a preventative. Almost every anti-bacterial, food, medication, etc. is only a bacteriastat -- that is, it prevents bacteria from growing, but does not actually kill them. This stopping of the growth gives the fish's own immune system a chance to catch up and take care of the infection.
All you are accomplishing by using medicated food as a preventative is culturing resistant bacterial strains. You stop the growth of other bacteria, but the bacteria that are naturally resistant can keep growing, and quickly become the dominant bacteria in the system. And now, when you do need the medicated food for an actual diagnosed infection, it will be largely ineffective.
For example, have you read or heard about the number of staph infections in hospitals that kill people now? Staph used to be a very very minor infection, but nowadays there are strains that are resistant to almost all of our antibacterials and they kill several people every year. Too casual use of antibacterials is the primary cause.
So, not only is wasteful to use medication when it is not necessary, but it actually contributes to the culturing of drug-resistant strains.