Design a System for faster retrieval and modification without burdening the Heap Memory : <p>I need to design a system where data is received via ServerSocket and the data should be readily available for retrieval and modification. Currently, all the data is stored in ConcurrentHashMap.</p>

<p>Data will be refreshed when the application restarts.</p>

<p>Maintaining a Flat File and data retrieval from the file will add some delay.</p>

<p>Is there any better approach to solve this kind of problem.</p>
