cases_list.php optimized