Added Flash caching for improved performance