make it possible to expose extra info from config middleware

for example expose the memo atom used in memoizing config to make it
possible to reset it