Added cache system for files