Cache result of processing and inline the check