Note that this is necessary for long living programs, specially since we are fall backing to temp dir now.