same thing here: messageContainers is a live list, you should cache the length