title: Would it be wrong to use a static object instead of a database?
body: <p>This is essentially a design patterns question:</p>
  
  <p>I was expecting to query a database to get a list of stocks(shares/securites whatever) that are most highly correlated for a given stock.</p>
  
  <p>Instead I thought maybe I should create an object which has a static HashMap and store my data in there. Then "query" it every time I need to. </p>
  
  <p>Would there be anything wrong with this approach, as I believe it would improve performance significantly over querying a database for the same data. The amount of data is relatively small and doesn't grow so that won't cause a problem. Might there be any issues that will bite me later?</p>