cache results for each file separately