Update index.php

Introduce flat file caching