Fix to only decrypt restricted values when task is active