[result metadata] some minor optimizations