#167 speed up cachefile lookups with an index by filenum and fileid