Assemble the middleware at init time.

3% perf improvement