Iterate over groups
Open / close the cache only when is needed.
Remove debug prints
Merge pull request #19 from aplanas/master

Better iteration in groups. Better use of the cache (do not block when there is not access to the cache)