Infer cache filename from input filename.