Fix tmOptimizedBind to avoid quadratic blowup
#936
Merged
tmOptimizedBind to avoid quadratic blowup
#936