Optimize level-of-detail of Layer_Shape (minimal effect)
Optimize Layer_PasteCanvas for last group in list