Optimized the static functions in st_asio_wrapper_base.h