Store the targets list as a serialized string due to bug 52605

Change-Id: I69d48048fe6c5be570472be28774f2a88dd6c9f8