Implement grace time for replica upload before cleaning.