The reason email messages are first queried and then bucketed into threads is so that the order of threads seen in a user's inbox is preserved in the extension.
The label names "reviewed" and "trash" are avoided because they are reserved label names in Gmail.