Exploiting Data Locality in Dynamic Web Applications