optimize retry logic