HYDRA-171: Now only calculate the Canvas Context matrix transform and related values if metrics are enabled.