Caching considerations for generational garbage collection