optimize performance for user manager in gate_src