Evaluate and apply weights function in chunks