Scratchpad cleanup