Here is a goal: How to best protect food from cockroaches?

Which way makes more sense to accomplish this goal?

Options are:
* Keeping the food in a well closed off container would be good.;
* Adding a bit of cockroach repellent while cooking the dishes would efficiently eliminate cockroach infestation.;
Keeping the food in a well closed off container would be good.