Revert "Allow to set expiration time."

This reverts commit e35b927e174a520b2237b2550ce4e5f9ad53f186.