Adding sample cache implementation