Your understanding is the veil.
The law always had one purpose. There is no secondary purpose.
The law was designed to show the whole world their need for a Saviour.
And here all this time...
Mat 22:36 Master, which is the great commandment in the law?
Mat 22:37 Jesus said unto him, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind.
Mat 22:38 This is the first and great commandment.
Mat 22:39 And the second is like unto it, Thou shalt love thy neighbour as thyself.
Mat 22:40 On these two commandments hang all the law and the prophets.
I thought it was to teach me how to love God and how to love my neighbor...
1Jn 5:2 By this we know that we love the children of God, when we love God, and keep his commandments.
1Jn 5:3 For this is the love of God, that we keep his commandments: and his commandments are not grievous.
Rom 13:9 For this, Thou shalt not commit adultery, Thou shalt not kill, Thou shalt not steal, Thou shalt not bear false witness, Thou shalt not covet; and if there be any other commandment, it is briefly comprehended in this saying, namely, Thou shalt love thy neighbour as thyself.
The Law converts...
Psa 19:7 The law of the LORD is perfect, converting the soul: the testimony of the LORD is sure, making wise the simple.
The Law protects us and keeps us from terrible consequences...
Psa 19:11 Moreover by them is thy servant warned: and in keeping of them there is great reward.
Once we are saved we can see what the Lord Jesus has done in us by the Holy Spirit to cause us to walk in His Statutes and obey His Law. But if we come out from under His Covering of Grace, even for a moment, to attempt to Keep His Law in our own strength it begins to do what it was always designed to do. Condemnation and Death.
Can anyone, even saved Christians, look back at the law and say "I'm perfect now. I remember when I used to be imperfect. Now all that condemnation and death is actually beautiful." The only thing I find beautiful about the law is that it brings me running back to my Saviour, each time, every time... sorry sorry I thought I was awesome for a minute, I didn't realize that it was all You...
The ONLY thing?
Psa_40:8 I delight to do thy will, O my God: yea, thy law is within my heart.
Sounds to me like having the Law in your heart (the essence of the New Covenant, Jer 31:31-34) is a delight. Being taught the Law brings blessings...
Psa 94:12 Blessed is the man whom thou chastenest, O LORD, and teachest him out of thy law;
Psa 119:1 ALEPH. Blessed are the undefiled in the way, who walk in the law of the LORD.
Psa 119:2 Blessed are they that keep his testimonies, and that seek him with the whole heart.
Psa 119:3 They also do no iniquity: they walk in his ways.
Psa 119:4 Thou hast commanded us to keep thy precepts diligently.
Psa 119:5 O that my ways were directed to keep thy statutes!
Psa 119:6 Then shall I not be ashamed, when I have respect unto all thy commandments.
Psa 119:18 Open thou mine eyes, that I may behold wondrous things out of thy law.
Psa 119:126 It is time for thee, LORD, to work: for they have made void thy law.
Psa 119:127 Therefore I love thy commandments above gold; yea, above fine gold.
Oh to have the heart of David...
Act 13:22 And when he had removed him, he raised up unto them David to be their king; to whom also he gave testimony, and said, I have found David the son of Jesse,
a man after mine own heart, which shall fulfil all my will.
In fact, David will be king over all Israel in the Millenium...
Eze 37:24 And David my servant shall be king over them; and they all shall have one shepherd:
they shall also walk in my judgments, and observe my statutes, and do them.
Eze 37:25 And they shall dwell in the land that I have given unto Jacob my servant, wherein your fathers have dwelt; and they shall dwell therein, even they, and their children, and their children's children for ever: and my servant David shall be their prince for ever.
Me? I love God's Law.