Use datetime for key expiration