Optimizations on tags, index on cache table, fixes for "right" detection of tag groups and new methods for "exclusive" group detection on tags