Implement cached query resuts cleanup