Implement very primitive in-memory index