update device cache in batches of 10 devices