title: Optimizing local storage and search
body: <p>I have a web application built in .NET</p>
  
  <p>During a session, the user has to access a dictionary value, that is populated from the database. The user makes frequent calls to it. </p>
  
  <p>I want to cut down the HTTP calls and want to bring the dictionary value to the client and access it from there. </p>
  
  <p>I wanted to understand what would be the best practice to store this dictionary value locally in such a way that retrieving data is very quick?</p>
  
  <p>What I'm trying to really do is similar to what FaceBook does with "@", so when you write @Name, it quickly makes a search in the database and replaces the text with the link. In my case, I have a fixed set of data to search from and usually it is not beyond 10-15 name-value pairs. </p>
  
  <p>I contemplated of storing values in cookies, but don't really know if there would be any storage limit and am also unaware of how quick the retrieval would be.</p>
  
  <p>Any help is much appreciated. </p>
  
  <p>Thank You</p>