Denoiser wastes quite a time on empty renderlayer (about 2 mins for 1080p), but its checkbox can't be keyframed and even LMB's Copy data path is greyed out (so, no scripting I guess).
Animating renderlayer visibility is no option for me, because it messes Multilayer EXR a lot.