I tried to highlight a scenario where one can keep her emergency cash in 3a (see this thread) - in that case it would be the least risky. The main point being: look at all your assets incl 3a. Calculate investment and tax cost for each solution (inside or outside 3a). Then allocate where it’s optimal.