Efficient calculation of chiral three-nucleon forces up to N3LO for ab initio studies