maintain a cache of opened files