big speedup of trail popup creation.