Don't calculate replacement weights on every call.