Convert arguments to array
Create folder if needed when writting cache file