[relate] Add optimizations for L/A disabling parts of the code if the result mustnot be updated
[relate] add optimization for L/L ommitting parts of the algorithm if the result mustnot be updated