Adjusting cache size
Using AtomicInteger to generate instance ids