I'm off the view that privacy as we once knew it is effectively dead, and that electoral security now necessitates being able to link a specific ballot to a specific individual.
We already effectively gave up the secret ballot when we ok'd mail-in and absentee ballots, and it's not like many people hide their political beliefs these days.
Adaption is the name of the game in survival, be it physical, social, or political.
Then perhaps a mostly secret ballot may be what is warranted. It can only be accessed by certain trusted officials and only for certain purposes. We probably want to keep the benefits of secret ballots while losing this obvious disadvantage.