Just make CockpitContext a singleton.