Refactor how style summary is retrieved to use cached values

When selecting or modifying large areas of content, the multiple style information lookup becomes quite expensive. These can be greatly sped up by using a common cached value + associated query object instead.