[Cache] Auto-add directory if it doesn't exist