Hidden structures in the class of convex functions and a new duality transform