Add cache method