PERF: check if file exists before recomputing betas