Simplify implementation of the `current_logtalk_flag/2` built-in predicate and optimize compilation for sufficiently instantiated calls