optimize tmp/ali/*.annotation.txt processing