improved cache plugin