I would suggest you instead fix the existing paste functionality to support a longer delay at the end of each line first.

Direct RAM save/load is best done in MESS as a "snapshot" - look at other drivers implementing snapshots for guidance.

Scraping RAM or VRAM is a terribly ugly kludge and I would push for rejection of patches implementing it on any system in MESS.