Configuration of key expiration for APC