Firebase security work: reordering calls