Avoid referencing lazy val directly in compute function.