Improve performance in rcon library