Move function to create temprary path from IO to Cache class. Remove this static member in Cache.