Because of how we are storing the min-max-flag in the read/write method the no. of dimensions must be <= 31.