reuse of temp table getting more time to execute
I would add a second column to the clustered index statement, make it be  

CREATE CLUSTERED INDEX IX_Temp_OBJECT_CD ON #Temp (OBJECT_CD, CD)


That may help, depending on how many CD's there are to OBJECT_CD's.