Optimize array usage by removing concat. Delay content splitting until absolutely necessary, then cache results