Improve unit result cache
Merge pull request #189 from golyshevd/equal-cache

Improve unit result cache