Improve speed of instance creation