Optimize index.php