Improve global storage of standard precision
(cherry picked from commit 2bbdc29bc9c77a14eaf4e560ad855db1d422c3ee)