Remove caches and update estimation fun.

Remove caches from AI as it actually hurt the performance.