Simple flyweight pattern implementation