Fix performance issues when creating multiple instances of Period (#12903, #11831)
closes #12903
closes #11831  
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
