It's absurd that you have to do this and/or be so careful.
But if you live in Russia, China, or another dictatorship, then I understand.
I spent two weeks thinking about my new setup on Graphene OS and Windows, but it was time well spent. Before that, my checklist for pre-border-crossing cleanup required about 8 hours of work. With the new setup, I can complete the cleanup in about an hour, and restoring takes even less.