cache file*'s properly (big performance gain!)