Thumbnails now get cached to prevent memory from running out