Hello.
For us is not completely clear the solution you are implementing and how specifically you are querying each device. Can you elaborate a bit more on your solution?
Also is it possible that the rest ICCID's are somehow duplicated due to the custom APN solution you are using. But I would need more info on your current topology.
You can attach files by editing your original question. And there you will find the File Upload Box field.