Shape memory thin films subject to hydrostatic pressure