Which country has "secret ballot" then ? Cause what you described as imperfect is the system that is present in all countries I've ever been in, and I've been in the majority of western europe...
Almost all actual democracies have secret ballot? There’s any number of ways to ensure secrecy is preserved at all times by default. (unlike in Sweden, where virtually no votes are secret because it requires hacking the process)