Optimized index.php