I find grain mites a very annoying battle as well. They never seem to go away completely and pop up out of no where! One way is to put the fly containers on anti mite paper. Just be sure not to get the anti mite paper, which is poison, into contact with the flies or mantises.
The best way is...