Temporary protective coating, impregnation, or cast layer