Control cache option in swig