Working on a cached threads object to massively optimize threading performance