Freeze
2D Modifier - Take a snapshot of the current image
As long as the modifier is active, the composition / layer on which it is applied will remain frozen. Be aware though that at the re-opening of your composition the previous state will not be restored as freeze load inside VRAM.
Python
Oil.createObject("FreezeTextureModifier")