only cache _resolve_input_files results when more than 5 files