Trying flyweight pattern with multi threading