optimized TTEntity loops