10x perf chunk generation by storing styles in an array instead of an object, who knew