View the second link I posted. Read the section where he discusses the causes of brain fog. One cause is gut permeability (leaky gut). If you continue down the page under fixing gut permeability, resistant starch is listed under the supplements section along with many other supplements.