Implement faster periodic BC