optimize slave session processing