More improvements on getCollection API with cache support