In terms of security the next morning, if you arrive at 5am you’ll be fine. The queues can be long, but even in the worst case you’ll be through security by 6am (and this have to skip the lounge and go straight to your gate), and more likely you’ll be through much more quickly.