Vacuum is not a good choice because air (humidity content included) will violently penetrate into the flask, when vacuum being broken. Besides, N2 is not visible and it is lighter than air and consequently, it will escape first from the hot flask and leave space to moisturized air to penetrate thereinto.
Another option is cooling glassware in a desiccator with P2O5. But I doubt if there are available desiccators that are large enough, to contain a 500ml three-neck flask plus the appropriate condenser plus the dropping funnel, etc.