Optimizing user sessions for XenApp