I will vote for `libmojito.middleware()` as a middleware function. then within that function having an internal cache routine that triggers on the first request, to be able to pick `app.mojito`, and `app.mojito.store` to collect any app level settings that is needed by the middleware to function.