0024164: Optimization of OCAF document closing