Add precalculated length field to mapping