scd: Simplify saving application context.