Optimized the performane of the cssClass method by employing a class name cache - this dramatically reduces the number of times that the class generator functions are executed.