[*] MO : big performance improvement on Twenga catalogue generation

Avoid flooding the output buffer inside nested loops