cache result in dimensions method