Some drawing optimisations by making local caches of some theme settings.