experimental threaded optimize