Will burning a pyogenic granuloma with a magnifying glass cause skin cancer?

A granuloma appeared on my middle finger about six months ago following a deep splinter. It quickly grew to the size of a dime within the period of a month. My doctor had a biopsy done and unsuccessfully curetted and cauterized it.

After that, I tried freezing it (myself) with liquid nitrogen several times, with no luck. Finally, I have been burning it with a magnifying glass every third day for the past two weeks and now it appears to be almost completely gone.

I am not blackening the skin during this procedure, just heating it until I can’t stand the pain. The granuloma immediately began drying out and the bulk of it fell off after the first two treatments.

Could this treatment cause skin cancer?