added performance measures, improved cache operations