Optimized timeout