Various performance improvements and also added gokbDateCeiling function
to refine.
Fixes #157