Cache Firebase data for offline use