> there've been times I've been stuck for 20 minutes trying to cross the 100 feet from Moffett to Castro in Mountain View, because the light timing never lined up with the train signals.

They've conveniently solved this by closing the Moffett->Castro side of that intersection entirely. You can still go Castro->Moffett, but they're planning on closing that to eliminate the grade crossing entirely.