Blackhead and cocci are caused by different protozoa.
Garlic, cayenne and other condiments might help as a preventative,
and many folks would swear to the death that those supplements perform miracles,
but I sure wouldn't count on it.
Best things to ensure healthy birds is provide them with...
I don't believe cayenne will do anything to treat cocci or generate immunity.
Bathing the bird will only stress it out more, stress can bring out latent disease.
BYC Medical Quarantine Article
Poultry Biosecurity
BYC 'medical quarantine' search