Cached deprecated math

From Wikipedia!

See phab:T270530