To improve fetchUids method so we can retrieve uids in batches. Otherwise we will face an error 'too long request' kind