Re-added splitting on newlines and added performance tests

[#59424930]

Signed-off-by: Casey McTaggart <cmctaggart@pivotallabs.com>