The best solution would be to get rid of c.u.r.s.o.r. *cough* in the first place.
Insert all data into lpn at once and use the OUTPUT clause to get the returned identity values. Then perform a singel update to the Addresses table for all AccountID's at once.