OF-565 use thread local instead of map with threads hashcode as key (this could lead to collissions)