Massive speedup in model plotting.

From 25 seconds to around 0.1 seconds for the parts I can influence.