Cache on the Flask.g object, not the Extension class instance as that is not thread safe