It could be an intestinal issue like candida that's giving you brain fog. Cheese is a cultured product that contains lactic acid bacteria that could be fighting the candida in your gut and relieving your brain fog. An easy way to test this theory would be to purchase a good multi-strain probiotic and see if your brain fog is alleviated after you take it.