performance boost in createLayerPoints