Small optimizations to recording threads.