you can set the `filter.read` property to `false` and that should returns you only the unread messages. (see https://mxr.mozilla.org/mozilla-central/source/dom/sms/interfaces/nsIDOMSmsFilter.idl)

That would make this so fast if this works !! :)