Remove caches and update estimation fun.

Remove caches from AI as it actually hurts the performance.