imported splines optimization