fix: increase the number of messages to fetch per folder + improve sort speed + add caching