Move creating new accounts to method and actually check if cache accounts is enabled before adding a cached account