Currently bundle stores messages in serialized form to reduce memory usage, and kryo was used. This is not thread-safe.