Better configuration of CookieStore