Performance note.
Lots and lots of security / main loop notes and ideas.