avoid using cache when arguments to all are not empty