jps model: cache role instances to optimize memory usage