Improve bulk speed reading all terminator at once

Instead of initialize the terminator array in the loop read it in the
main function.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>