I can grep the file and look to see if it has been appended previously, and only do it once if we need to run this script multiple times.  Even so, it should not have a negative impact to have the duplicate key.