serving api endpoints from in memory cache