Updating the stat cache to only cache one item because PHP already caches stat calls. Here we are just seeding the cache for an immediate next stat call when using a directory iterator