Build auth.json incrementally instead of creating a huge array