Add linecache clearing to reduce memory footprint