Simplify Mutex switch in Session, Html template and Cache!