Made sequence in message caches volatile as it is an int accessed by multiple threads