dictionary: remove useless print, better check for previous row existance
dictionary: optimize performance by avoiding unwanted memory allocation

Instead of mindlessly discarting the previous rows, swap them out.