Angular and Flyweight Pattern: Memory Optimization