MaDaTS: Managing Data on Tiered Storage for Scientific Workflows