Improved get messages performance for anonymous tokens