Optimized socket thread