This patch slightly speedups origin initialization by having a special column in the database table for current data usage. This patch also fixes a problem with length computation of some unicode strings.