Caching class_exists call to increase performance (BC break)