Maybe it will be better to store the variants info as a coma separated list in order to remove the dependency on php's unserialize?