Speed up active chunk set rebuilds, simplify getPersistentChunks.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>