Target double-serialized values only in SQL, remove the redundant check