Be smarter about re-using script cache files