This is essentially a design patterns question:
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.
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.
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?