Initialize the context before the first request.