Shame they forgot about it most of the time. We have plenty of episodes where one starfleet ship is pursuing another and using the prefix code would end the chase quickly. Such as in DSN's "Past Prologue".
I get the sense it's only used as a last resort, sort of like the auto-destruct. Who knows what it would take to program in a new code, given that it's used to take over all major bridge functions?