I don't think that works when you're doing a BATCH query as the order in which the queries are executed isn't guaranteed.