cache recent data items in memory