Don't iterate through every device to find unsent messages, that's just stupid.