further optimizations to IK to prevent redundant computation, almost within req speed margin