Single threaded optimizations