Added instance and global caching of class properties