Conditional download of data file