Efficient stochastic thermostatting of path integral molecular dynamics | Synapse