MongoDB engineers spent the last two years developing field-level encryption, a scheme that would reduce the damage after a data breach.