Added cache class for objects