Optimizations of PDA NanoUI

We don't have to process every function every time, should shrink the JSON
data pushes as well as sanitize some of the data.