Thread locals isn't my solution
Revised timetravel middleware