add function to support caching magnet conversion information