improved cache proxy