Text this: A new continuous optimization method of standardized cubic permanent magnets for stellarators