First pass of optimization, using a chunk buffer for properties.
Part of #1873