(connect_ps3.c) Optimize