Fix for expiring keys always taking a second longer than expected