Remove temp files in caching step