Cache separated into standalone class.